package com.example.multithreading;

public class ch03_06 {
    public static void main(String[] args) {

        Thread t1 =new Thread(){
            @Override
            public void run() {
                System.out.println(Thread.currentThread());
                System.out.println(Thread.currentThread()==this);
            }
        };

        t1.start();

        String name =Thread.currentThread().getName();
        System.out.println(name);
        System.out.println("main".equals(name));

    }
}
